﻿<UserControl
    x:Class="BlipSansBlop.Joystick"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BlipSansBlop"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400" Width="160" Height="160" Background="#FF595959">
	<Grid HorizontalAlignment="Left" Height="160" Margin="0" VerticalAlignment="Bottom" Width="160" >
		<Canvas Canvas.ZIndex="1">
			<Ellipse x:Name="Stick" Width="80" ManipulationMode="All" AllowDrop="True" ManipulationDelta="Ellipse_ManipulationDelta" Height="80" Canvas.Left="80" Canvas.Top="80" ManipulationCompleted="Stick_ManipulationCompleted">
				<Ellipse.Fill>
					<ImageBrush ImageSource="ms-appx:///Assets/Elementsdejeu/Joy.png"/>
				</Ellipse.Fill>
				<Ellipse.RenderTransform>
					<CompositeTransform TranslateY="-40" TranslateX="-40"/>
				</Ellipse.RenderTransform>
			</Ellipse>
		</Canvas>
		<Image Source="ms-appx:///Assets/Elementsdejeu/FondJoy.png" Margin="-20"/>
	</Grid>
</UserControl>
